Skip to content

test(coverage): boost line coverage to 80.7% (+762 tests, exclude grammar from JaCoCo)#33

Merged
aksOps merged 8 commits into
mainfrom
coverage/boost-80pct
Apr 4, 2026
Merged

test(coverage): boost line coverage to 80.7% (+762 tests, exclude grammar from JaCoCo)#33
aksOps merged 8 commits into
mainfrom
coverage/boost-80pct

Conversation

@aksOps

@aksOps aksOps commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • +762 new unit tests across 4 parallel workstreams (1,680 → 2,349 total)
  • 80.7% line coverage on non-grammar business logic (up from ~58%)
  • Excludes ANTLR-generated grammar parsers from JaCoCo (already excluded in sonar.exclusions)

Coverage by workstream

Workstream New Tests Key Packages
TypeScript detectors +153 All 13 TS detectors: Express, Fastify, NestJS, GraphQL, Kafka, TypeORM, Prisma, etc.
Java detectors + model +190 Kafka, gRPC, RabbitMQ, JDBC, JPA, WebSocket, JAX-RS, GraphQL, model classes
Python/Go/Rust/Scala/C++ +216 Django, FastAPI, Flask, Actix-web, Ktor, Go web/ORM, Proto, Shell, Kotlin
Frontend/C#/Support +203 React, Vue, Angular, Svelte, EF Core, Minimal APIs, linkers, cache, query intelligence

JaCoCo exclusion fix

Added <excludes><exclude>io/github/randomcodespace/iq/grammar/**</exclude></excludes> to JaCoCo plugin config in pom.xml. The grammar package (ANTLR-generated parsers, ~70K lines) was already excluded from SonarCloud via sonar.exclusions=**/grammar/** but was incorrectly counted in local JaCoCo reports.

Test plan

  • 2,349 tests — 0 failures, 0 errors
  • 80.7% line coverage on business logic (target: 80-85%)
  • SonarCloud grammar exclusion aligned with JaCoCo exclusion

🤖 Generated with Claude Code

aksOps and others added 8 commits April 4, 2026 08:11
…tector tests

Replace 11-line stub test files with comprehensive test suites across 13 detector
test classes. Each class now has 12-18 tests covering positive match, edge/node
properties, no-match/empty/null guard paths, supported-language/name meta checks,
and determinism. Total test count grows from ~1620 to 1836 (+216 new tests).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ward 70%+

Rewrote and expanded all 13 TypeScript detector test files, adding ~1,600 lines
of new tests covering happy paths, negative paths, edge cases, and determinism
for every detector in the typescript package.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add 203 new targeted unit tests to boost SonarCloud coverage across
frontend detectors (React, Vue, Angular, Svelte, FrontendRoute), C#
detectors (EfCore, MinimalApis, Structures), auth detectors (Certificate,
LDAP, SessionHeader), analyzer linkers (GuardLinker, EntityLinker,
ModuleContainmentLinker, TopicLinker), cache (AnalysisCache, FileHasher),
and intelligence/query (QueryPlanner, CapabilityMatrix, QueryPlan record).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…erage

Add JavaDetectorsCoverageTest with 120+ tests covering deeper branches
across all 27 Java detectors: null/empty guards, multiple topic/queue
detection, relationship types, JDBC URL variants, SQL source types,
WebSocket/STOMP patterns, gRPC stub/impl combos, RMI bind/lookup, and
more. Add ModelCoverageTest with comprehensive coverage of CodeNode,
CodeEdge, NodeKind (32 values), EdgeKind (27 values) including round-trip
fromValue(), equality, hashCode, toString, provenance, and integration tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aksOps aksOps merged commit d45153d into main Apr 4, 2026
6 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Apr 4, 2026

Copy link
Copy Markdown

@aksOps aksOps deleted the coverage/boost-80pct branch April 26, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant